package com.csy.user.entity.system.domain;

import java.sql.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.csy.commons.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
public class AjVisitor extends BaseEntity {
    /**
	 * 
	 */
	private static final long serialVersionUID = 5736766721966732238L;

	@TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long visitorId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long communityId;

    private String visitorName;

    private String visitorPhoneNumber;

    @JsonFormat( pattern = "yyyy-MM-dd")
    private Date visitorDate;

    private Long createById;

    private String createByOpenId;

    @TableField(exist = false)
    private String communityName;

}
